#ifndef ENTITY_H
#define ENTITY_H
#include "SDL.h"
#include "SDL_opengl.h"
#include "Controller.h"
#include "NessEngineSys.h"

const int RIGHT = 0, LEFT = 1, DOWN = 2, UP = 3;

typedef struct fRect{
	float x,y,w,h;
}fRect;

class Entity{
public:
	int frame;
	int totalFrames;
	void MoveX(int direction);
	void MoveY(int direction);
	int GetX();
	int GetY();
	int GetW();
	int GetH();
	void SetX(int x);
	void SetY(int y);
	void SetW(int w);
	void SetH(int h);
	void SetP(int x, int y);
	void SetB(int w, int h);
	Entity();
	~Entity();
	NessTexture texture;
	bool tileSheet;
	fRect box;
	int speed;
	int tempTick;
protected:
	
	SDL_Surface *image;
	float xVel, yVel;
	Controller *controller;

};

#endif